package week7.homework;

public class novels extends Books{
    String hoster;//小说主人公。
    public novels(String name, String type,String author,double price,int pages,String hoster)
    {
        super(type,name,author,price,pages);
        this.hoster = hoster;
    }

    public String getHoster() {
        return hoster;
    }

    public void setHoster(String hoster) {
        this.hoster = hoster;
    }

    public String toString()
    {
        return "\n种类"+this.getType()+"\t书名"+this.getName()+"\t作者"+ this.getAuthor()+"\t价格"+this.getPrice()+"\t小说主人公"+this.hoster;
    }

}
